import { request } from '@/network/request'
import { getToken } from '@/network/bookManager'
// encapsulation
/*
 *@functionName:  查询热词
 *@params1: 参数1
 *@description:
 *@author: chendi
 *@date: 2020-08-30 19:19:11
 *@version: V1.0.5
 */
export async function queryHotwords(option) {
  let token = await getToken()
  return request({
    url: `/api/tcb/invokecloudfunction?access_token=${token.access_token}&env=zhuma-mbnti&name=queryHotWords`,
    method: 'post',
    data: JSON.stringify(option)
  })
}
